package ooday02;

public class AnimalTest {
    /*
    public static void main(String[] args) {
        Dog dog=new Dog("竹子",16,"白色");
        dog.drink();
        dog.eat();
        dog.lookHome();
        Chick chick=new Chick("小黄",8,"黄色");
        chick.drink();
        chick.eat();
        chick.layEggs();
        Fish jy=new Fish("金鱼",5,"金色");
        jy.drink();
        jy.eat();
    }

     */

    public static void main(String[] args) {
        Dog dog = new Dog("竹子", 16, "白色");
        dog.drink();
        dog.eat();
        dog.lookHome();
        Chick chick = new Chick("小黄", 8, "黄色");
        chick.drink();
        chick.eat();
        chick.layEggs();
        Fish jy = new Fish("金鱼", 5, "金色");
        jy.drink();
        jy.eat();
    }
}
